<!DOCTYPE html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleleaf.org">
<head th:insert="base">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <input id="orderId" type="hidden" th:value="${orderId}">
                <div class="layui-card-body ">
                    <table class="layui-hide" id="tableId" lay-filter="tableId"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script th:inline="none">
    layui.use(['table','form','util','tool','laydate','enums'], function(){
        var table = layui.table;
        var $ = layui.jquery;
        var form = layui.form;
        var util = layui.util;
        var tool = layui.tool;
        var laydate = layui.laydate;
        var enums = layui.enums;
        var baseUrl = "/back/orderComplaint";
        table.render({
            elem: '#tableId'
            ,id:'tableReload'
            ,url: baseUrl + '/getList'
            ,limit:10
            ,limits:[10,20,50]
            ,method:'post'
            ,toolbar:'#toolbar'
            ,where:{
                orderId:$("#orderId").val().trim()
            }
            ,defaultToolbar: ['print']
            ,title: '投诉列表'
            ,cols: [[
                {field: '', title: '序号',width:50,type:'numbers'}
                ,{field:'orderId', title:'订单id',type: 'text',width:300}
                ,{field:'complaintUserName', title:'投诉人姓名',type: 'text',width:200}
                ,{field:'complaintTypeDesc', title:'投诉类别',type: 'text',width:120}
                ,{field:'handleStatusDesc', title:'受理状态',type: 'text',width:120}
                ,{field:'complaintContent', title:'投诉内容',type: 'text',width:400}
                ,{field:'createTime', title:'投诉时间',type: 'text',width:160,templet:function (d) {
                        if(d.createTime){
                            return util.toDateString(d.createTime, "yyyy-MM-dd HH:mm:ss")
                        }
                        return "";
                    }}
            ]]
            ,page: true
        });


    });
</script>
</body>
</html>